package com.device.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.device.domain.dto.CabinetAddUpdateDto;
import com.device.domain.dto.CabinetDto;
import com.device.domain.entity.Cabinet;
import com.device.domain.vo.CabinetSlotBankVo;
import com.device.domain.vo.CabinetVo;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface ICabinetService extends IService<Cabinet> {
    PageInfo<CabinetVo> selectCabinetList(CabinetDto cabinetDto) throws JsonProcessingException;

    Map<String,Object> getAllInfo(Long id);

    List<CabinetSlotBankVo> getCabinet(Integer id);

    List<Cabinet> searchNoUseList(String keyword);

    void cabinetSave(CabinetAddUpdateDto cabinetAddUpdateDto);

    void cabinetUpdate(CabinetAddUpdateDto cabinetAddUpdateDto);

    void cabinetDelete(List<Integer> id);

    Cabinet getBtCabinetNo(String cabinetNo);
}
